CREATE TABLE [dbo].[T_WAREHOUSE_PRODUCT]
(
[WAREHOUSE_ID] [bigint] NOT NULL,
[PRODUCT_ID] [bigint] NOT NULL,
[CANTIDAD] [decimal] (18, 2) NOT NULL,
[CREATE_DATE] [datetime] NOT NULL,
[DISABLE_DATE] [datetime] NULL,
[WAR_PRO_STATUS] [bit] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[T_WAREHOUSE_PRODUCT] ADD 
CONSTRAINT [PK__T_WAREHO__79B922DF84E2A7B7] PRIMARY KEY CLUSTERED  ([WAREHOUSE_ID], [PRODUCT_ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_WAREHOUSE_PRODUCT] ADD CONSTRAINT [FK__T_WAREHOU__PRODU__08B54D69] FOREIGN KEY ([PRODUCT_ID]) REFERENCES [dbo].[T_PRODUCT] ([PRODUCT_ID])
GO
ALTER TABLE [dbo].[T_WAREHOUSE_PRODUCT] ADD CONSTRAINT [FK__T_WAREHOU__WAREH__68487DD7] FOREIGN KEY ([WAREHOUSE_ID]) REFERENCES [dbo].[T_WAREHOUSE] ([WAREHOUSE_ID])
GO
